Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@vtbag/turn-signal
Advanced tools
Turn-Signal is a lightweight script that enhances cross-document navigation by detecting the direction of browser navigation. It enables developers to create smooth, responsive transitions that adjust based on forward or backward navigation, delivering a
⭐️Please star to support this work⭐️
Turn-Signal: Directional view transitions for intuitive navigation.
The @vtbag website can be found at https://vtbag.pages.dev/
Transition types and direction attributes are now also determined on the old page!
For details see the CHANGELOG and the documentation.
Turn-Signal is a lightweight script that enhances cross-document view transitions by detecting the direction of browser navigation. It enables developers to create smooth, responsive transitions that adjust based on forward or backward navigation, delivering a more intuitive user experience.
When your pages slide to the left on forward navigation, let them slide to the right when the users goes back in the browser's history.
The script automatically detects the traversal direction and sets backward
, neither
or forward
view transition types accordingly. You can also instruct the script to set data attributes on the <html>
element.
If your site has the concept of a previous and next page, the Turn-Signal can automatically generate directional transitions for you.
See the Turn Signal in action and see how it can be customized.
1.1.0 - 2024-10-22
old
and new
types tell you, where you are.
One use case is to exclude elements from view transitions depending on the direction.
With this change you can not only exclude or add the new images but also the old images!FAQs
Turn-Signal is a lightweight script that enhances cross-document navigation by detecting the direction of browser navigation. It enables developers to create smooth, responsive transitions that adjust based on forward or backward navigation, delivering a
The npm package @vtbag/turn-signal receives a total of 4,908 weekly downloads. As such, @vtbag/turn-signal popularity was classified as popular.
We found that @vtbag/turn-signal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.